import {mainStore} from "../store/store.ts";
import {ref} from "vue";
import {storeToRefs} from "pinia";

export function useGrade() {
    const graderPng = ref<string>('/assets/grade.png')
    // const router = useRouter()
    const store = mainStore();
    const {loginStatus} = storeToRefs(store)

    function isLogin() {
        if (loginStatus) {
            // router.push('/').then()
        }
    }

    return {
        isLogin, graderPng
    }
}